package com.wzdigit.wms.basic.domain.inv;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.wzdigit.framework.orm.model.BasicDomain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 封库/解封单表头
 * </p>
 *
 * @author 
 * @since 2021-06-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("WMS_SEAL_HEADER")
@KeySequence(value = "WMS_SEAL_HEADER_SEQ", clazz = Integer.class)
public class SealHeader extends BasicDomain {

    private static final long serialVersionUID = 1L;

    /**
     * 封库/解封单表头ID
     */
    @TableId(value = "SEAL_HEADER_ID", type = IdType.INPUT)
    private Integer sealHeaderId;

    /**
     * 封库/解封单号
     */
    @TableField("SEAL_NO")
    private String sealNo;

    /**
     * 单据类型：封库S01；解封S02
     */
    @TableField("SEAL_TYPE")
    private String sealType;

    /**
     * 工厂代码(组织)，如5500,5520
     */
    @TableField("FACTORY")
    private String factory;

    /**
     * 货主，客户主数据中 客户类型=货主，取客户ID
     */
    @TableField("OWNER")
    private Integer owner;

    /**
     * 封库/解封原因
     */
    @TableField("REASON")
    private String reason;

    /**
     * 封库/解封时间
     */
    @TableField("SEAL_TIME")
    private Date sealTime;

    /**
     * 封库/解封人
     */
    @TableField("SEAL_USER")
    private String sealUser;

    /**
     * 来源单号
     */
    @TableField("SOURCE_NO")
    private String sourceNo;

    /**
     * 封库/解封单参考信息1
     */
    @TableField("SEAL_REF1")
    private String sealRef1;

    /**
     * 封库/解封单参考信息2
     */
    @TableField("SEAL_REF2")
    private String sealRef2;

    /**
     * 封库/解封单参考信息3
     */
    @TableField("SEAL_REF3")
    private String sealRef3;

    /**
     * 封库/解封单参考信息4
     */
    @TableField("SEAL_REF4")
    private String sealRef4;

    /**
     * 封库/解封单参考信息5
     */
    @TableField("SEAL_REF5")
    private String sealRef5;

    /**
     * 用户自定义字段1
     */
    @TableField("UDF1")
    private String udf1;

    /**
     * 用户自定义字段2
     */
    @TableField("UDF2")
    private String udf2;

    /**
     * 用户自定义字段3
     */
    @TableField("UDF3")
    private String udf3;

    /**
     * 用户自定义字段4
     */
    @TableField("UDF4")
    private String udf4;

    /**
     * 用户自定义字段5
     */
    @TableField("UDF5")
    private String udf5;

    /**
     * 备注
     */
    @TableField("COMMENTS")
    private String comments;
}
